import request from '@/config/request.js'

export const commonImgUpload = (file, path) =>
  request.post({
    url: '/oss/putImg',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: { file, path }
  })
